package com.fy.spring.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Component
@FeignClient(value = "cloud-payment-service")
public interface PaymentFeignClient {

    @GetMapping(value = "/payment/lb")
    String lb();

    @GetMapping(value = "/payment/timeout")
    String timeout(@RequestParam(value = "second")  int second);

    @GetMapping("/payment/exception")
    String makeException();
}
